Whacking PVC with a piece of 2x4, not pressure treated, is pretty safe. Pressure treated seems a little harder, but still softer than a hammer. Or, use a piece of PVC pipe.
Al