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

Cast the specified `ref` to `AnyRef`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlar/AnyRef.adoc[AnyRef]
toAnyRef(xref:BloombergLP/bdlar/SequenceRef.adoc[SequenceRef] const& ref);
----

== Return Value

an `AnyRef` for the sequence referred to by `ref`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ref*
| sequence reference to wrap as `AnyRef`
|===


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