I have two vectors like this :
Vector<Animal> vAM = new Vector<Animal>();
Vector<Cat> vCat = new Vector<Cat>();
Is it possible to cast the vAM
vector into the vCat
vector ? If not, then how should it be done ?
Update : The reason I mentioned this is I have a certain conversion here in my code which does not throw compile time exception , but it throws a run time exception . Hence I wanted to know whether there is any other way of doing this .