Here’s a pattern I’m trying for type casting in GDScript. I’m not sure if it’s the best pattern.

Option one

if mySuperType is SubType:
    var mySubType := mySuperType as SubType
    doStuff(mySubType)