On a Transformation of the Weighted Compound Poisson Process