Fix type conversion.