[#BloombergLP-bdlar-AnyCastUtil-toAnyRef-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/AnyCastUtil.adoc[AnyCastUtil]::toAnyRef :relfileprefix: ../../../ :mrdocs: Cast the specified `ref` to `AnyRef`. == Synopsis Declared in `<bdlar_anycastutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlar/AnyRef.adoc[AnyRef] toAnyRef(xref:BloombergLP/bdlar/DynamicTypeRef.adoc[DynamicTypeRef] const& ref); ---- == Return Value an `AnyRef` for the dynamic type referred to by `ref` == Parameters [cols="1,4"] |=== | Name| Description | *ref* | dynamic‐type reference to wrap as `AnyRef` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#