assert equals int long float
<p>Is there an elegant way to assert numbers are equal while ignoring their classes? I want to use it in JUnit tests framework but for example</p>

<pre><code>Assert.assertEquals(1,1L)
</code></pre>

<p>fails with java.lang.AssertionError: expected: java.lang.Integer&lt;1> but was: java.lang.Long&lt;1></p>

<p>I expect there is a nice method somewhere which compares only value and works with int, long, float, byte, double, BigDecimal, BigInteger, you name it...</p>