I have a project in which this code does not give me problems, but in Xcode 7.0 beta 6 it skips the warning and I can't find a way to fix it
func session(session: WCSession, didReceiveMessage message: [String : AnyObject], replyHandler: ([String : AnyObject]) -> Void) {
print("Mensaje recibido:\(message)")
if let msg = message as? String{ //Error here
// do something with the uname
}
replyHandler(["reply" : "OK"])
}