About this question
I have an object with value (s1,s2,s3,s4) (this is the value I get during System.debug). Now I want to convert these values to a list of strings, i.e ['s1','s2','s3','s4'].
How can I do that?
I tried,
Listtest = new List List(); test.addAll((List )obj); // threw an error can't convert List to List test = new List (); test.addAll((List ) JSON.deserializeUntyped(obj.toString())); // throws Unexpected character ('(' (code 40)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at input location [1,2]