I saw that method it creates a clone and dont know if it was worth cloning just to get a param from set. even if shallow. I can go with toArray if you think this is not going to generate gc pressures in client.