[#BloombergLP-bdlar-AnyCastUtil]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::AnyCastUtil
:relfileprefix: ../../
:mrdocs:

This `struct` provides a namespace for functions that convert between `AnyRef`&sol;`AnyConstRef` and the concrete type&hyphen;category reference types&period;

== Synopsis

Declared in `&lt;bdlar&lowbar;anycastutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct AnyCastUtil;
----

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlar/AnyCastUtil/toAnyConstRef-03.adoc[`toAnyConstRef`] 
| Cast the specified `ref` to `AnyConstRef`&period;
| xref:BloombergLP/bdlar/AnyCastUtil/toAnyRef-09.adoc[`toAnyRef`] 
| `toAnyRef` overloads
| xref:BloombergLP/bdlar/AnyCastUtil/toArrayConstRef.adoc[`toArrayConstRef`] 
| Cast the specified `any` to `ArrayConstRef`&period;
| xref:BloombergLP/bdlar/AnyCastUtil/toArrayRef.adoc[`toArrayRef`] 
| Cast the specified `any` to `ArrayRef`&period;
| xref:BloombergLP/bdlar/AnyCastUtil/toChoiceConstRef.adoc[`toChoiceConstRef`] 
| Cast the specified `any` to `ChoiceConstRef`&period;
| xref:BloombergLP/bdlar/AnyCastUtil/toChoiceRef.adoc[`toChoiceRef`] 
| Cast the specified `any` to `ChoiceRef`&period;
| xref:BloombergLP/bdlar/AnyCastUtil/toCustomizedTypeConstRef.adoc[`toCustomizedTypeConstRef`] 
| Cast the specified `any` to `CustomizedTypeConstRef`&period;
| xref:BloombergLP/bdlar/AnyCastUtil/toCustomizedTypeRef.adoc[`toCustomizedTypeRef`] 
| Cast the specified `any` to `CustomizedTypeRef`&period;
| xref:BloombergLP/bdlar/AnyCastUtil/toDynamicTypeConstRef.adoc[`toDynamicTypeConstRef`] 
| Cast the specified `any` to `DynamicTypeConstRef`&period;
| xref:BloombergLP/bdlar/AnyCastUtil/toDynamicTypeRef.adoc[`toDynamicTypeRef`] 
| Cast the specified `any` to `DynamicTypeRef`&period;
| xref:BloombergLP/bdlar/AnyCastUtil/toEnumConstRef.adoc[`toEnumConstRef`] 
| Cast the specified `any` to `EnumConstRef`&period;
| xref:BloombergLP/bdlar/AnyCastUtil/toEnumRef.adoc[`toEnumRef`] 
| Cast the specified `any` to `EnumRef`&period;
| xref:BloombergLP/bdlar/AnyCastUtil/toNullableValueConstRef.adoc[`toNullableValueConstRef`] 
| Cast the specified `any` to `NullableValueConstRef`&period;
| xref:BloombergLP/bdlar/AnyCastUtil/toNullableValueRef.adoc[`toNullableValueRef`] 
| Cast the specified `any` to `NullableValueRef`&period;
| xref:BloombergLP/bdlar/AnyCastUtil/toSequenceConstRef.adoc[`toSequenceConstRef`] 
| Cast the specified `any` to `SequenceConstRef`&period;
| xref:BloombergLP/bdlar/AnyCastUtil/toSequenceRef.adoc[`toSequenceRef`] 
| Cast the specified `any` to `SequenceRef`&period;
| xref:BloombergLP/bdlar/AnyCastUtil/toSimpleTypeConstRef.adoc[`toSimpleTypeConstRef`] 
| Cast the specified `any` to `SimpleTypeConstRef`&period;
| xref:BloombergLP/bdlar/AnyCastUtil/toSimpleTypeRef.adoc[`toSimpleTypeRef`] 
| Cast the specified `any` to `SimpleTypeRef`&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
