I know you need to pay attention to what kind of foam. Some of them off gas stuff which will contaminate your melt. Also you basically can use the foam, and dissolve it out of plaster with acetone, if you want to make a plaster mold. Just has to be the right kind of foam. Hack A Week did a series on that technique for making the form for a motorcycle gas tank.