API SelectionSet

Hi

I have a Problem with the SelectionSet over the API. I Get the SelectionSetFolder and the SelectionSet name.

But how do i get the name of the SelectionSetItems. I always get the type 20 "swSelCOMPONENTS" and cant cast in component or other object.

how do i get the name ?

SolidworksApi/macros