Casting to game instance always fails when packaging the game

Thank you for this post.
I got stuck still ver 4.25
Now I know how to fix it.