Changing a list to a vector.