Testing for object equality by comparing the toString() representations of objects
<p>Following on from <a href="http://programmers.stackexchange.com/questions/149001/are-there-any-situtations-where-having-a-data-model-in-which-all-your-enititie">this question</a> - how do you explain to someone that this is just crazy!:</p>

<pre><code>boolean someMethod(Map&lt;String, Object&gt; context) {
    Object object = context.get("someProperty") 
    Object another = context.get("anotherProperty") 

    return object.toString().equals(another.toString());
}
</code></pre>

<p>Apparently the reason for why <code>Object.equals(...)</code> is not used is that "what's contained in the Map is not concretely known, but is definitely known to be one of the primitive wrappers i.e. <code>String</code>, <code>Double</code>, <code>Boolean</code>, etc... and that <code>Boolean.TRUE</code> is required to be <code>equal(...)</code> to the <code>String</code> "TRUE"".</p>
