A bag of fruit is not a bag of apples.
If you use type free collections, you get an unsafe warning (by default) because what you are doing is unsafe. You can turn off the warning using annotations. But a better approach is to not use untyped collections.
Ask: why does your Vector (or any other collection) needs to have heterogenous items? This is generally bad design. If you really need to handle both, create a holder class, and put the items into instances of the holder, and have the Vector be typed to the holder objects.
You nearly always want the collections to be homogeneous so you can do stuff like
for (Foo f : list) {
f.baz();
}