title: Convert NSSet to Swift Array
body: <p>In CoreData I have defined an <em>unordered</em> to-many relationship. This relationship is defined in Swift like this:</p>
  
  <pre><code>@NSManaged var types : NSMutableSet
  </code></pre>
  
  <p>However, to use Swift at it's best, I want to use a normal Swift array like <code>Type[]</code>. However, CoreData forces me to use <code>NS(Mutable)Set</code>. How can I type-cast / convert the <code>NSSet</code> to <code>Array&lt;Type&gt;[]</code>?</p>