extend toArray