Lua-API++  2015-02-12-3
Lua-API++ library
Deprecated List
Member Valref::optcast (const T &backupValue=T()) const noexcept
use to function instead.
Returns
Converted value or fallback value if the conversion cannot be made.
Template Parameters
Tthe type to cast to. Converts to all types supported by cast except user data.