Converts Array-like objects into Array.