private double convertToDouble(Object o, double defaultValue) {
        if (o.getClass() == Double.class) {
            return (Double) o;
        } else if (o.getClass() == Float.class) {
            return ((Float) o).doubleValue();
        } else {
            try {
                return Double.parseDouble(o.toString());
            } catch (NumberFormatException e) {
                LOG.warn("Configuration cannot evaluate value {} as a double value", o);
                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