Automatic .toString() when calling a method?
<p>I got the code of a former employee. There are many calls to methods like:</p>

<pre><code>foo(val,...);
</code></pre>

<p>where </p>

<pre><code>void foo(String s,...) {
  ...
}
</code></pre>

<p>and val is an int.</p>

<p>Of course, I get an error.</p>

<p>As a workaround I pass ""+val to foo. I wonder if there is a better way.</p>
