You throw away my outside and cook my inside. Then you eat my outside and throw away my inside.What am i?

Hello. We have solved the famous riddle You throw away my outside and cook my inside. Then you eat my outside and throw away my inside. What am i? As you know riddles are fascinating and challenging word games in which you need to guess what is the main word.

You throw away my outside and cook my inside. Then you eat my outside and throw away my inside.What am i?

SOLUTION: A Corn