Introduction
Star projection helps you work with generic types when you don't know the exact type. It lets you use a generic class safely without specifying the type.
When you want to accept any type of generic object without caring about its specific type.
When you call a function that uses generics but you don't know or need the exact type.
When you want to read from a generic collection but don't want to write to it.
When you want to avoid type errors while working with unknown generic types.