No idea as I have no plans to try it, and have done absolutely no research on that.
However, I'd hazard a guess that if it is indeed toxic then it is more toxic to a small worm than it is to a large human, and the worm dies from the toxicity long before you would.
There are some very rare nasty worms/ parasites which can't be killed at all easily by the main medicines (e.g. racoon roundworm or trypanosomes) and the only available treatment is an arsenic-based substance! This works on the same principle of killing a small worm/ parasite quicker than killing you!