toObject()
Converts the JavaScript value to a native object.
Declaration
func toObject() -> Any!Return Value
An Objective-C or Swift object representing the JavaScript value.
Discussion
The type of the resulting object depends on the contents of the JavaScript value. For conversion rules, see Convert Between JavaScript and Native Types.