Add more meaningful information to the convert_to exception msg.

Currently, we often get exceptions from this method in our code, although it's difficult to tell why. This would be very helpful to make it clearer.

It is also more consistent with other exceptions raised in your code.

Relevant tests updated.