remove casting to fix build error

Dependents:   RTC_Demo

USBMIDI/USBMIDI.h/shortlog@a3c50882f2c5: not found in manifest