Changed access from HashSet::toArray() to Public