remove casting to fix build error

Dependents:   RTC_Demo

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