Simple casts to remove linker warnings.

...possible data loss.