Creates a new array that contains all the values in the set.
an array containing all the values in the set