Get Game Mode variables from widget

If the game mode is only server based, then how can I get the variables from the game mode in a widget? Do I need to do it from game state? Is that the only way to go?

I have some game types (names like “Capture The Flag, Domination”) in the game mode, and I want to display that in the widget, and casting to the game mode in the widget always fails, because it is server sided.

hmm, it looks like that the problem was that I was casting to a game mode that the level was not using. I created the array in the game mode that the level was using, and now the cast is valid!