First I Threw Away the Outside and Cooked the Inside Riddle

Riddle: First I threw away the outside and cooked the inside then I ate the outside and threw away the inside. What did I eat?

Answer: The answer to “First I threw away the outside and cooked the inside riddle” is “Corn”.