Quite a few people are under the a.s.sumption, that you can just cut open a cactus and find some water to drink. However that is a way too optimistic a.s.sumption. The moisture found within a cactus is very acidic. This is because succulent plants (plants that store water) need to use a different variant of photosynthesis to avoid evaporation of stored liquids. This method is called Cra.s.sulacean Acid Metabolism. The plant would then only open their stomates (plant pores) at night and store the collected carbon dioxide as an organic acid called malic acid. During this process they will also produce oxalic acid. Oxalic acids are toxic to humans as they produce calcium oxalates (creates kidney stones) that can clog up our kidneys.
Cactus fruit apparently tastes quite bad and the cactus juices will cause diarrhea and vomiting if ingested in excessive amounts or on an empty stomach. This would then dehydrate you even further and kill you faster.
The cactus like plants found in Africa and Madagascar are truly toxic.