How to get the instance of an object as a string?
<p>Is it possible to get the instance of an object returned as a string representation e.g. '0x12345678' or just '12345678' ? </p>

<p>Something like this pseudocode:</p>

<pre><code>string myObjectsInstanceAsAString = myObject.instance.ToString();
</code></pre>

<p>Thanks</p>
