Convert the port to an int