diff --git a/include/core/Variant.hpp b/include/core/Variant.hpp index 310bd41b..5f400135 100644 --- a/include/core/Variant.hpp +++ b/include/core/Variant.hpp @@ -226,6 +226,7 @@ public: operator NodePath() const; operator RID() const; operator godot_object *() const; + template operator T*() const { return static_cast(T::___get_from_variant(*this)); } operator Dictionary() const; operator Array() const;