Implement return type conversion.