- December 8, 2016 at 7:29 am #17122Kumar #353
How to typecast a list of Salesforce sObjects into list of Accounts?
I have a list of type sObject, and I want to typecast it into a list of Accounts, i.e.
list<sObject> into list<Account>
How do I implement this?
Thanks in advance.December 8, 2016 at 11:19 am #17126sushant #231
Suppose we have a list<sobject> named as l1 then we can use this kind of syntax (list<Account> l1) tp type cast it.i have type cast sobject list to Account list in this syntax.
Hope this helps you
ThanksDecember 8, 2016 at 11:29 am #17130
Please Register to reply to this topic. /