Converts pixel and line coordinates to int before returning