Quick Fix on the Controller style, change all static_cast to dynamic cast for safty