Add type conversion on port.