Comparez anyobjects en swift

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