code: private static int toSeleniumCoordinate(Object openCVCoordinate) {
          if (openCVCoordinate instanceof Long) {
              return ((Long) openCVCoordinate).intValue();
          }
          if (openCVCoordinate instanceof Double) {
              return ((Double) openCVCoordinate).intValue();
          }
          return (int) openCVCoordinate;
      }
docs: Converts float OpenCV coordinates to Selenium-compatible format.
  
  @param openCVCoordinate the original coordinate value
  @return The converted value