JScript  

String expected

[This is preliminary documentation and subject to change]

You attempted to invoke the String.prototype.toString or String.prototype.valueOf method on an object of a type other than String. The object of this type of invocation must be of type String.

To correct this error

See Also

String Object | toString Method