let str = "true"let nsStr = str as NSStringlet boolValue = nsStr.boolValue//boolValue is trueprint("boolValue is \(boolValue)")