using Game instance without cast to

i find how to get my variables from my game instance without using any cast, i share my solution here