Do you want the objects in the java collection to be stored in it, taken out and then forcibly transferred? Why thank you?
Because if the collection element taken from the ordinary collection is of type Object, it is necessary to force him to convert the type to the target type. If you use a universal set, you don't need to convert such as list.