I am loping an array of object that are of a type. More specific types that inherit this type. How do I check if an object is of a certain more specific type?
In the example below I am trying to check if an animal is also an elephant.
for (NSInteger i = 0; i < allAnimals.count; i++) {
Animal *animal = allAnimals[i];
// Check if animal is Elefant?
}