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