Oracle Error Message
ORA-19028: Invalid ADT parameter passed to toObject() function
Reason for the Error
The object passed as ADT parameter to sys.XMLType.toObject() is not the same type, or a super-type, of the mapped type.
Solution
Pass an object of the correct type to toObject().