parse as an int first