Is it possible to pass a concrete list of objects into a method that expects a list of sObjects?
E.g.
list<account> accs = [select id, name from account];
PassToMethod(accs);
...
public void PassToMethod(list<sObject> objects){
...
}
In my particular case I want a generic method that accepts Database.UpsertResult[] + list of sObjects that were upserted. The method will then capture information (id, name) regarding any upserts that failed.