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