remove casting to fix build error

Dependents:   RTC_Demo

shortlog@2f8e3f5f75cf: not found in manifest