Quote:
Can someone give a solution to this issue?
Yes, you'll need to debug it. The error means you are trying to cast something into something it is not. For example, the string "approved" into a boolean. We cannot run your code so we cannot see what any of the values are.
You'll want to start with finding out which line of code the error is pointing to. Then it should be very, very easy to figure out what is happening.