简单类型 / 布尔

let str = "true"
let nsStr = str as NSString
let boolValue = nsStr.boolValue
//boolValue is true

print("boolValue is \(boolValue)")