A pie is a baked dish which is usually made of a pastry dough 
Oh, I like pie!  Apple pie especially.
They have casing that covers or completely contains a filling of various sweet or savoury ingredients.