Kompile - fixing casting for ground parser, and properly appying the type filter for casts.