public static Short convertToShort(Schema schema, Object value) throws DataException {
        if (value == null) {
            return null;
        } else if (value instanceof Short) {
            return (Short) value;
        }
        return (short) asLong(value, schema, null);
    }
Convert the specified value to an {@link Type#INT16} short value. The supplied schema is required if the value is a logical
type when the schema contains critical information that might be necessary for converting to a short.

@param schema the schema for the value; may be null
@param value  the value to be converted; may be null
@return the representation as a short, or null if the supplied value was null
@throws DataException if the value could not be converted to a short
connect/api/src/main/java/org/apache/kafka/connect/data/Values.java