remove casting to fix build error

Dependents:   RTC_Demo

Revision:
70:2f8e3f5f75cf
Parent:
50:a3c50882f2c5