private static int intValue(Object value) {
        if (value instanceof Integer)
            return (int) value;
        else if (value instanceof Long)
            return (int) (long) value;
        else
            throw new ConnectException("Expected integer value to be either Integer or Long");
    }
Given task configurations, get a set of integer task IDs for the connector.
connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java