我正在从swift 1.2迁移到2.0,因为代码在swift 1.2中运行良好但在2.0中没有
let data = dataContainer["d"] as NSArray!
for item in data {
var username: String = item["username"] as! String
}
我收到此编译器错误:
Cannot convert value of type 'String' to specified type 'String'
我该如何解决?