Adds support for ToString to cast non-streamable objects by printing the name of the type