remove casting to fix build error

Dependents:   RTC_Demo

USBDevice/USBHAL_Maxim.cpp/shortlog@2f8e3f5f75cf: not found in manifest