Convert an array-like object into an Array.