I have the code below to check if a string is a valid email. After updating to Swift 1.2 , I'm now seeing the error: 

```
Bound value in a conditional binding must be of Optional type 

```

On the line 

```
if let emailTest = NSPredicate(format:"SELF MATCHES %@", emailRegEx) 

```

I'm not sure what I should do to remove this error. Any suggestions?

Thanks

```
 func isValidEmail(testStr:String) -> Bool {
        println("validate calendar: \(testStr)")
        let emailRegEx = "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}"

        if let emailTest = NSPredicate(format:"SELF MATCHES %@", emailRegEx) {
            return emailTest.evaluateWithObject(testStr)
        }
        return false
    }

    println("Email is: \(isValidEmail(email))")

```