Question
ColdFusion 2021 - class coldfusion.runtime.TemplateProxy cannot be cast to class
I installed ColdFusion 2021 and now I catch some error:
class coldfusion.runtime.TemplateProxy cannot be cast to class coldfusion.runtime.Struct (coldfusion.runtime.TemplateProxy and coldfusion.runtime.Struct are in unnamed module of loader coldfusion.bootstrap.BootstrapClassLoader @3b2553d9)
I investigated the issue and found that we can't use Structure this.EnvStruct.Items directly in the query.

I fixed the query:

But It's not a good idea, because we have a lot of functions when we use the structure, this code is working in Coldfusion11 and Coldfusion2018. Could you help me?
