Wakefield leapfrogged St Helens into fourth in Betfred Super League after two tries each from Jake Trueman and Oliver Pratt helped them blow away West Yorkshire rivals Castleford 34-0.