public static Struct convertToStruct(Schema schema, Object value) {
        return convertToStructInternal(STRUCT_SELECTOR_SCHEMA, value);
    }
Convert the specified value to a {@link Type#STRUCT} value. Structs cannot be converted from other types, so this method returns
a struct only if the supplied value is a struct. If not a struct, this method throws an exception.

<p>This method currently does not use the schema, though it may be used in the future.</p>

@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 struct, or null if the supplied value was null
@throws DataException if the value is not a struct
connect/api/src/main/java/org/apache/kafka/connect/data/Values.java