What role do generics play in type casting within the Java Collections Framework?
They require casting objects to their specific types before insertion
They eliminate the need for explicit type casting
They automatically cast objects to the collection's generic type at runtime
They only affect type casting when retrieving elements, not when inserting them