foreach(p; obj.children){ // "KObj[] children"
DPFile dfile = cast(DPFile)p;
if(!dfile)continue;
...
}I saw the std.algorithm.filter template helper could be used, but it's a bit complex:
foreach(unit; file.children.filter!(a => cast(KUnit)a)){
...
}
Thanks
