Converts the specified object to an array according to the following rules: Tip:

You may call this function in a more method-like style:

obj.toArray()