Added toArray static collection methods