Conversion bool from a string in Swift

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