Use simpler List.toArray() method