[fixed] idlc casting inside a method