Fold the foam into a cylindrical shape and using contact adhesive glue the edges together.

Follow all instructions on your glue.