replace c-style cast to c++ static_cast in mainFlightDisplays1