title: Convert JSON Array to Int Array In Swift
body: <p>This may be a silly question, but despite digging through the questions here on StackOverflow, I can't seem to find a use case that matches my predicament.</p>
  
  <p>Namely, I have some data being pulled from a REST service that spits out some historical data as JSON;</p>
  
  <pre><code>[
      {
      "city": "New York",
      "historicalTemps": "98.46,71.81,76.58,82.38,91.08",
      "timestamp": "2015-06-04 10:20:34",
      }
  ]
  </code></pre>
  
  <p>I am able to parse my data in my iOS app, and am setting historicalTemps to a String.  Where I'm failing, however, is figuring out how to convert this comma-separated string to an Int array so it can populate my graph.  This is where I've stalled;</p>
  
  <pre><code>var arr = historicalTemps.componentsSeparatedByString(",")
  println(arr)
  //Prints [98.46,71.81,76.58,82.38,91.08] as I would want.
  </code></pre>
  
  <p>My attempts to figure out how to convert this String array to an Int array, however, are failing me.  Any possible suggestions?</p>
  
  <p>Thank you!</p>