title: Cast objects to comparable type
body: <p>In Scala. I have two objects of type Any. If it's possible, I'd like to cast the objects to the correct Ordered trait, and then compare them with the &lt; method. Otherwise, I want to throw an exception. Should be simple, but I'm stumped...</p>