[#llvm-cast_or_null-02f] = xref:llvm.adoc[llvm]::cast_or_null :relfileprefix: ../ :mrdocs: Deprecated alias for `cast_if_present` on a const value. == Synopsis Declared in `<llvm/Support/Casting.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class X, class Y> auto cast_or_null(Y const& Val); ---- == Return Value The result of `cast_if_present<X>(Val).` == Parameters [cols="1,4"] |=== | Name| Description | *Val* | Value forwarded to `cast_if_present.` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#