toObject

Deprecated

Unsafe deserialization of untrusted data. Use toObjectSecure(expectedClass, allowedClasses) instead.

Legacy deserialization method - DEPRECATED because deserializing untrusted bytes can execute arbitrary code. Use toObjectSecure instead.