@Override
    public byte[] fromConnectData(String topic, Schema schema, Object value) {
        try {
            return serializer.serialize(topic, value == null ? null : cast(value));
        } catch (ClassCastException e) {
            throw new DataException("Failed to serialize to " + typeName + " (was " + value.getClass() + "): ", e);
        } catch (SerializationException e) {
            throw new DataException("Failed to serialize to " + typeName + ": ", e);
        }
    }
Create the converter.

@param typeName the displayable name of the type; may not be null
@param schema the optional schema to be used for all deserialized forms; may not be null
@param serializer the serializer; may not be null
@param deserializer the deserializer; may not be null
connect/runtime/src/main/java/org/apache/kafka/connect/converters/NumberConverter.java