Use the generic parameters of the vector.

aClass obj = aClass();

Vector<aClass> x = new Vector<aClass>(); // x can only hold aClass objects
x.add(obj);

x.get(0).someFunction();
//where...