Function to Accept Any Type but `AnyVal`?
<p>Looking at the Akka <a href="http://doc.akka.io/docs/akka/current/scala/actors.html" rel="nofollow noreferrer">docs</a> for creating an Actor:</p>
<blockquote>
<p>The recommended approach to create the actor Props is not supported for cases when the actor constructor takes value classes as arguments.</p>
</blockquote>
<p>Is it possible to define a function:</p>
<p><code>def anyTypeButValueClass[A : ...](x: A) = ???</code></p>
<p>where <code>A</code> is any type except for a value class at <strong>compile-time</strong>?</p>
<p>My understanding is that value classes extend <code>AnyVal</code>,(per <a href="http://docs.scala-lang.org/overviews/core/value-classes.html" rel="nofollow noreferrer">docs</a>) but there's also:</p>
<blockquote>
<p>The standard implementation includes nine AnyVal subtypes:</p>
<p><code>Double, Float, Long, Int, Char, Short, and Byte</code> are the numeric value types.</p>
<p><code>Unit and Boolean</code> are the non-numeric value types.</p>
</blockquote>
<p>per <a href="http://www.scala-lang.org/api/rc2/scala/AnyVal.html" rel="nofollow noreferrer">AnyVal</a>.</p>
<p>How can this function be written?</p>