Does Objective-C have a cast operator similar to 'as' operator in C# or the recommended way is to use isKindOfClass method to test the object and if yes cast the object to desired class?
In C# I do this:
Class1 o1 = obj as Class1;
if (o1 != null)
{
    // ...
}
In Objective-C should I go with this:
if ([obj isKindOfClass:[Class1 class]]) {
    Class1* o1 = (Class1*)obj;
    // ...
}