title: Swift: How to convert string to dictionary
body: <p>I have a dictionary which i convert to a string to store it in a database.</p>
  
  <pre><code>        var Dictionary =
      [
          "Example 1" :   "1",
          "Example 2" :   "2",
          "Example 3" :   "3"
      ]
  </code></pre>
  
  <p>And i use the </p>
  
  <pre><code>Dictionary.description
  </code></pre>
  
  <p>to get the string. </p>
  
  <p>I can store this in a database perfectly but when i read it back, obviously its a string.</p>
  
  <pre><code>"[Example 2: 2, Example 3: 3, Example 1: 1]"    
  </code></pre>
  
  <p>I want to convert it back to i can assess it like </p>
  
  <pre><code>Dictionary["Example 2"]
  </code></pre>
  
  <p>How do i go about doing that?</p>
  
  <p>Thanks</p>