Nothing critical, so long as it stays put.
I need to glue some ABS plastic to some of that white expanded foam often used in packing electronic consumer items - hard disks often come packed in this. It is not expanded polystyrene, if used as packing it comes in strips and blocks, rather than filling the entire space, it is like a hard sponge and quite slippy to handle.