remove casting to fix build error

Dependents:   RTC_Demo

USBMIDI/USBMIDI.cpp/shortlog@2f8e3f5f75cf: not found in manifest