Activity Forums Salesforce® Discussions What is type casting in Salesforce?

  • Anuj

    Member
    September 7, 2020 at 1:38 PM

    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.

  • Manish

    Member
    September 7, 2020 at 3:14 PM

    Converting one type object into other is call typecasting

  • Marziya

    Member
    September 8, 2020 at 6:02 AM

    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.

Popular Salesforce Blogs

Popular Salesforce Videos

How to Learn Salesforce Development | Salesforce learning steps for beginners | Trailhead demo

Video in

In this video, we shared the steps to learn salesforce lightning basics, salesforce apex development, CRM in online for free from scratch very quickly. Learn salesforce…