People who code: we want your input. Take the Survey

Questions tagged [casting]

The tag has no usage guidance.

3 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
351 views

Generic method to downcast SObject list and return typed list

Does anyone know if there is an approach to write a generic method that takes an SObject list and specified type as input, and return a downcasted list? Casting is straightforward but as far as I'm ...
0
votes
0answers
62 views

invalid conversion from runtime type Map<ANY, ANY> to Map<String, ANY>

this is what I'm sending to apex: filter: {value: "1"} That is exported via this function in my js controller: @api exportData(){ let data = {}; if(this.isInput || this.isSelect || ...
0
votes
0answers
43 views

JSON deserialization issues

I have reviewed a lot of the other deserialize issues and I keep running into problems. What I have been able to gather is that if I have a response coming back with a reserved word in the JSON, I can ...