It's not possible to cast the value of type xs:untypedAtomic to xs:double?
I have made an XML file to store some data for my application. The C++ part of the application accesses this data by calling an XQuery file. When I run the program, it compiles fine but takes a long time to finally appear on the screen. It also gives me this error:
@It's not possible to cast the value of type xs:untypedAtomic to xs:double@
What does this mean? how do I fix it?\