Make sure the port is an int