BatteryMonitor: add casts to make new compiler versions happy
Merge pull request #360 from kh4/forPat

BatteryMonitor: add casts to make new compiler versions happy