[#BloombergLP-bdlar-AnyCastUtil-toAnyConstRef-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/AnyCastUtil.adoc[AnyCastUtil]::toAnyConstRef :relfileprefix: ../../../ :mrdocs: Cast the specified `ref` to `AnyConstRef`. == Synopsis Declared in `<bdlar_anycastutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlar/AnyConstRef.adoc[AnyConstRef] toAnyConstRef(xref:BloombergLP/bdlar/DynamicTypeConstRef.adoc[DynamicTypeConstRef] const& ref); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#