Checks for floats when storing XYZ coordinates, and ints for storing neighbors.