Casting and referencing not working

It’s resolved. I did not select the game instance in the project settings > Maps and modes