Transforming any idea in foam