Generally if you look back through the stack trace, you'll find a point in your code where you made a call to the function that generated the exception. For example in the report you posted, it looks like you passed an object to a function that was expecting a string. If you go back through the stack trace, you should find your line of code that did this.
- Colin.