Afaik there shouldn’t be anything else that could go wrong when casting. In standalone mode, did you check the object is valid? I remember I experienced a similar issue when I forgot to mark a property using the UPROPERTY macro in a C++ class. In PIE everything was fine, but in standalone the object was garbage collected because of the missing marker.