ScriptObject can be stored in Variant. 

There is a risk to this as the reference is not increased when storing it so if the original handle isn't stored correctly in the script it can be null when getting.

```
class Test : ScriptObject
{
    String msg;

    Test()
    {
    }
    
    Test(const String& msg)
    {
        this.msg = msg;
    }
}

    Test@ test1 = Test("I'm a Test");
    Variant var = Variant(@test1);

    Test@ test2 = cast<Test>(var.GetScriptObject());
    if (@test2 !is null)
        Print(test2.msg);
    else
        Print("Null");
```