function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sravanthi GSravanthi G 

Invalid conversion from runtime type Contact to Lead

iam geeting errror in bacth class ?Invalid conversion from runtime type Contact to Lead?
NagendraNagendra (Salesforce Developers) 
Hi Sravanthi,

May I suggest you please check with below link from stack exchange community with a similar issue which will point you in the right direction. Also, please post the code snippet so that we can look into it for better understanding which results in easy troubleshooting.

Thanks,
Nagendra