remove casting to fix build error

Dependents:   RTC_Demo

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