Casting to game instance always fails when packaging the game

Thank you, your comment really helped me!