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.

Namely, I have some data being pulled from a REST service that spits out some historical data as JSON;

```
[
    {
    "city": "New York",
    "historicalTemps": "98.46,71.81,76.58,82.38,91.08",
    "timestamp": "2015-06-04 10:20:34",
    }
]

```

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;

```
var arr = historicalTemps.componentsSeparatedByString(",")
println(arr)
//Prints [98.46,71.81,76.58,82.38,91.08] as I would want.

```

My attempts to figure out how to convert this String array to an Int array, however, are failing me. Any possible suggestions?

Thank you!