[#BloombergLP-bdlar-AnyCastUtil-toEnumConstRef] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/AnyCastUtil.adoc[AnyCastUtil]::toEnumConstRef :relfileprefix: ../../../ :mrdocs: Cast the specified `any` to `EnumConstRef`. The behaviour is undefined unless `any.typeCategory() == bdlat_TypeCategory::e_ENUMERATION_CATEGORY`. == Synopsis Declared in `<bdlar_anycastutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlar/EnumConstRef.adoc[EnumConstRef] toEnumConstRef(xref:BloombergLP/bdlar/AnyConstRef.adoc[AnyConstRef] const& any); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#