Impregnation of a formed object with a gas