static Result_Type cast(const Boxed_Value &ob, const Type_Conversions *) { if (!ob.get_type_info().is_const() && ob.get_type_info() == typeid(Result)) { return static_cast<Result *>(throw_if_null(ob.get_ptr())); } else { throw chaiscript::detail::exception::bad_any_cast(); } }