I am wondering how hard it would be to implement automatic casts from objects to basic types. You probably know what I mean... small example:
void fun(int a) { ... }
object i = Int(32); // Class offering a cast method
fun(i); // cast to int automatically
I admit that it introduces new traps and some complexity. Any opinions?
arne