It returns -1 when it can’t find the item on the list.
You’ll need some kind of comparison, like “==” to find the equals of the ElementIds.
With that, you can filter what you need with a List.FilterByBoolMask