data: The reference address of the data to be converted.
index: The offset of the address of the item to be converted from the reference address,
in units of the size of the declared type.
data_type: The declared type of the data. Must be one of the constants (defined
in SDDS.h) SDDS_LONGDOUBLE, SDDS_DOUBLE, SDDS_FLOAT, SDDS_LONG,
SDDS_ULONG, SDDS_SHORT, SDDS_USHORT, or SDDS_CHARACTER.
desired_type: The desired type to cast the data to.
memory: The address of the location in which to store the result. If NULL, space is
allocated.
return value: The address of the location in which the result was stored. Returns NULL on error and records an
error message.