Fix build warnings for integer type coersions.