blueprint does not inherit from game mode

You could try reparenting the game mode you are casting to as game mode base. That may cause other issues though.

Open up GM_RacingGame for editing. Look in top right corner to see what the parent is.
How did you create GM_RacingGame?
You are simply not giving enough information here for anyone to give you a sensible answer.