title: How to convert NSCFString to an Array
body: <p>This is what I received from <code>userInfo</code>,</p>
  <pre><code>AnyHashable(&quot;data&quot;): [
    { &quot;number&quot;: &quot;1&quot;, name: &quot;one&quot; }, 
    { &quot;number&quot;: &quot;2&quot;, name: &quot;two&quot; }
  ]
  </code></pre>
  <p>This is what I can get using <code>userInfo[&quot;data&quot;]</code></p>
  <pre><code>[
    { &quot;number&quot;: &quot;1&quot;, name: &quot;one&quot; }, 
    { &quot;number&quot;: &quot;2&quot;, name: &quot;two&quot; }
  ]
  </code></pre>
  <p>But when I print the type it says NSCFString so I want to convert it to an array so I can loop through it.</p>
  <p>I'm new to Swift so an explanation would be very much appreciated. thank you!</p>