For EVA foam you will have to seal it before you can paint with rattle cans. There are multiple ways to seal foam to prep for painting:
Plasti-Dip
Wood Glue
Mod Podge
And/or Heat from a Heat gun
I got me some wood glue. I’m gonna try it on a sample piece before I do it on my finished parts.