convertObject
Converts an object to another type based on its structure and contents.
Return
The converted object or null if the input object is null or cannot be converted.
Parameters
obj
The object to be converted. Can be of any type.
Converts an object to another type based on its structure and contents.
The converted object or null if the input object is null or cannot be converted.
The object to be converted. Can be of any type.