Fix the type conversion warnings.