You’re casting two variable to string:
One of them is an object. You can’t cast object to string this way. You should try to dump both variables to see which one is the cause of the problem.
Happy new year !
CLICK HERE to find out more related problems solutions.