In transitioning to 64-bit support, fixing some conversion warnings.