Implicit Casting

In contrast to explicit casts performed with the cast operator (->), implicit casts are performed automatically by the compiler.

A type may be implicitly cast to another type in the following cases:

For instance, given the method:

method add(o:Object) {
    ...
}

is is legal to call add("Hello!"), despite the fact that "Hello!" is a String and add() expects an Object: since String is a subclass of Object, an implicit cast from String to Object is performed.