convert min and max coords to int