Topic:   How to convert sObject to account in Salesforce?
Feb 04, 2021 17:27 1 Replies 1210 Views RAMU

How to convert sObject to account in Salesforce?

Prev Next
Topic Replies (1)
  1. 1
    idnkx user

    Meta keto Reviews

    You can assign particular type object to generic for e.g
    sObject s = new Account();
    But You can't assign Generic type Object to Particular(Account) Object For e.g
    Account a =s; This will give error so you need to type Cast this to
    Account a=(Account)s;

Leave a Reply
Guest User

Not sure what solution is right for you?

Choose the right one for you.
Get the help of the experts and find a solution that best suits your needs.


Let`s Connect