Using static_ptr_cast over dynamic_ptr_cast in StartGameWindow.