I keep getting this error and I haven't a clue as to why; other than it has to do with this script. Please help me understand why this is happening
I'm not certain that is all there is to it but :
should probably be:
A "Cannot cast from source to destination type" is well... an invalid-cast error. In other words, you're trying to reference an incorrect type into a type-restricted variable. For examples:
would - I believe - all throw the exception. Note that JScript allow for dynamic casting, such as:
would - I believe - never throw the exception, though errors might arise later.
answered Apr 27 '11 at 05:36 AM