I have a bit of code where I've written a SOQL query that returns a list of SObject records, however I need a
Set<Id> structure to pass to another method that I don't have control of (and thus can't change the method signature of).
How can I turn my returned
List<SObject> into a
Set<Id>? Is the best option just a for loop?