Check that input to port is an integer