static Giraffe ReturnGiraffe(Animal first, Animal second) { if (first.GetType() == typeof(Giraffe)) { return (Giraffe)first; } else { return (Giraffe)second; } }
static void UseUnspecificAnimals(Animal father, Animal mother) { // And do something with them }