Porównaj AnyBjects en Swift
if (obj1 as! NSObject) === (obj2 as! NSObject)
{
//logic goes here
}
Magnificent Mandrill
if (obj1 as! NSObject) === (obj2 as! NSObject)
{
//logic goes here
}