cast render coordinates to int