Luna::Ref::as
template <typename _Rty>
_Rty * as() const
Gets the boxed object casted to _Rty.
Return value
Returns one pointer to the boxed object casted to _Rty. Returns nullptr if the reference is null or the boxed object cannot be casted to _Rty.