Minecraft wiki entry for Bed, associated text: Each bed in the vicinity of a zombie villager has a chance to speed up the process of curing the zombie villager. Iron bars (such as in a prison cell) also have this effect.