Barium hydroxide is corrosive because it is basic . It is also toxic because of barium ions . Barium hydroxide presents the same hazards as other strong bases and as other water-soluble barium compounds : it is corrosive and toxic .