[#BloombergLP-bdlar-AnyCastUtil-toDynamicTypeRef] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/AnyCastUtil.adoc[AnyCastUtil]::toDynamicTypeRef :relfileprefix: ../../../ :mrdocs: Cast the specified `any` to `DynamicTypeRef`. == Synopsis Declared in `<bdlar_anycastutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlar/DynamicTypeRef.adoc[DynamicTypeRef] toDynamicTypeRef(xref:BloombergLP/bdlar/AnyRef.adoc[AnyRef] const& any); ---- == Description The behaviour is undefined unless `any.typeCategory() == bdlat_TypeCategory::e_DYNAMIC_CATEGORY`. == Return Value a `DynamicTypeRef` for the object referred to by `any` == Parameters [cols="1,4"] |=== | Name| Description | *any* | any reference to cast |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#