Fix type conversion warning.