Use protocol transduceToArray to impl toArray