I dunno about the particular type of foam your using but I've used electric carving knifes on soft and harder foams and styrofoam ( making set pieces for bands)

I'd say try it on a piece of similar material and see how you feel about it first .