Cooking with Plastic
I would recommend chucking the cake out. Many plastics contain additives which are not really recommended for eating (e.g. phthalate plasticizers, brominated fire retardants etc). The dangers are long term though for these. If the plastic is PVC - that's another matter. I would say definitely bin it and also if you can detect a weird smell or taste in the cake.