easywhat am-i

You throw away the outside and cook the inside. Then you eat the outside and throw away the inside. What did you eat?
Common Wrong Answers
“Potato”
While you might peel a potato (throwing away the skin) and cook the inside, you do not eat the outside afterward; instead, you typically eat the cooked inside.
“Egg”
With an egg, you throw away the shell (the outside) and cook the inside, but you don't throw away the inside after eating the outside; you eat the inside instead.
“Watermelon”
In the case of watermelon, you eat the inside (the fruit) and throw away the rind (the outside), which is the opposite of the riddle's process.