remove casting to fix build error

Dependents:   RTC_Demo

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