COMP: Fix downcast warnings

This fixes warnings, typically where a double is implicitly converted to
an int.

Change-Id: Ib994dfdf1152f43a222746dec5b7fee39c23d33a
Merge topic 'GCC4.1-Dashboard-Warnings'

3106eb2d COMP: Fix downcast warnings