The water molecules in the formula you're talking about is water of crystallisation. water of crystallization or water of hydration or crystallization water is water that occurs inside crystals.
This water can be removed by simple heating but the molecular structure does not change. Thus process is thus a physical change