Difficult

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