This plant is a Yucca whipplei, common name Our Lord’s Candle. The one in the picture, is an immature plant. It is not poison but it certainly did not agree with a least one hiker who tried to sample it. He had a long night last night with bouts of vomiting etc. I'd say off hand, although the plant may be edible, I'd stick to pro bars.