VecUtils: Clean up uses of dyn_cast.