Implement flow for type conversion.