dynamic cast to be able to use the full map occupancy mode