diff --git a/include/core/Godot.hpp b/include/core/Godot.hpp index f55eae3e..260c226c 100644 --- a/include/core/Godot.hpp +++ b/include/core/Godot.hpp @@ -66,7 +66,7 @@ template struct _ArgCast { static T _arg_cast(Variant a) { - return (T) a; + return a.operator T(); } };