implemented ToArray.
implemented ToList.