Implemented the NSObjectCast define.