Fixed casts subject to problems on some compilers.
Fixed casts subject to problems on some compilers.

mistoll/CanFestival-3,mistoll/CanFestival-3,mistoll/CanFestival-3,mistoll/CanFestival-3,mistoll/CanFestival-3