Use static_cast to cast from void* to AnimalCreateFunc*