Change type of PathWriter