Cook inside, eat outside

You pick it. You peel the outside. You cook the inside. You eat the outside and throw away the inside. What am I?