Cast port to number