private long convertToLong(Object o, long defaultValue) {
        if (o.getClass() == Long.class) {
            return (Long) o;
        } else if (o.getClass() == Integer.class) {
            return ((Integer) o).longValue();
        } else {
            try {
                return Long.parseLong(o.toString());
            } catch (NumberFormatException e) {
                LOG.warn("Configuration cannot evaluate value " + o + " as a long integer number");
                return defaultValue;
            }
        }
    }
Removes given config option from the configuration.

@param configOption config option to remove
@param <T> Type of the config option
@return true is config has been removed, false otherwise
inlong-sort/sort-common/src/main/java/org/apache/inlong/sort/configuration/Configuration.java