The traditional method is to heat the compound in an oven, on a hot plate or over a Bunsen burner. Waters of hydration are loosely bound in the compound and can be driven off at temperatures below the melting point of the compound. So the answer is heating.