Probably the more wild yucca varieties has more cyanide while the cultivated yucca has some cyanide but most has been bred out of it.
I read citrus was originally bitter, that oranges etc. had to be bred to be as sweet as they are today
Yes, there are several vegetables and fruits we consume today that were not eatable in the past because of their bitterness or being too sour.