I suspect that this is not a problem with the object not convertable to a string.
It's more like that you are assuming that a variable contains a string, (or something that can represented as a string), but it contains an object, and you are trying to echo that out.