List<Id> to List<String> Set<Id> to Set<String> List<String> to List<Id> Set<String> to Set<Id> Set to List of same data type List to Set of same data type
April 2021 archive
Permanent link to this article: https://salesforcebuddy.com/2021/04/converting-collections-in-apex/