remove casting to fix build error

Dependents:   RTC_Demo

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