Activity › Forums › Salesforce® Discussions › What is type casting in Salesforce?
-
What is type casting in Salesforce?
Posted by Kirandeep on September 7, 2020 at 10:59 AMWhat is type casting in Salesforce?
Marziya replied 5 years, 8 months ago 4 Members · 3 Replies -
3 Replies
-
In general, all type information is available at run time. This means that Apex enables casting , that is, a data type of one class can be assigned to a data type of another class, but only if one class is a subclass of the other class. Use casting when you want to convert an object from one data type to another.
- [adinserter block='9']
-
Converting one type object into other is call typecasting
-
This means that Apex enables casting , that is, a data type of one class can be assigned to a data type of another class, but only if one class is a subclass of the other class. Use casting when you want to convert an object from one data type to another.
Log In to reply.