You may throw away the outside and cook the inside. Then you eat the outside and throw away the inside. What did you eat?

An ear of corn.

Source: Riotous Riddles