title: Convert populated Set<String> to [String] in swift
body: <p>I am kind stuck with the following.</p>
  
  <p>I've got the following array</p>
  
  <pre><code>var selectedItems = Set&lt;String&gt;()
  </code></pre>
  
  <p>That has some items from parse inserted to it</p>
  
  <pre><code>self.selectedItems.insert(objectToAppend)
  </code></pre>
  
  <p>Then I've created the following variable where I intend to convert the Set into something I could use on my parse query with the following line. But almost nothing converts. <code>[AnyObject, [String], [self.selectedHobbies], ["\(self.selectedHobbies)"]</code> ... none works.</p>
  
  <pre><code>let itemsArray = self.selectedHobbies as [AnyObject]
  </code></pre>
  
  <p>And if I do not convert it I cannot use in the query bellow.</p>
  
  <pre><code>query.whereKey("itemTag", containedIn: itemsArray as [AnyObject])
  </code></pre>
  
  <p>If I could manage to convert it to a <code>[String]</code> it would solve my problem. Not sure how.</p>