I am migrating from swift 1.2 to 2.0 following code was working well in swift 1.2 but in 2.0 doesn't
    let data = dataContainer["d"] as NSArray!
    for item in data {
        var username: String = item["username"] as! String
    }
I am getting this compiler error:
Cannot convert value of type 'String' to specified type 'String'
How can I fix it?