Compare AnyObjects en Swift

if (obj1 as! NSObject) === (obj2 as! NSObject)
{
//logic goes here
}
Magnificent Mandrill