Well, it does indeed work, so I guess the compiler implicitly casted the WorldObject down. Needless to say that this would better be done explicitly. Will change this.