This could also convert other array-like types such as a function's `arguments`, so `listToArray` seems a good name, or even just `toArray`