The Western Samoan stand-off, Nigel Vagana, led Warrington's assault with a hat-trick of tries which left Castleford still without a Super League victory.
Cas looked capable of picking up at least a point when the substitute Richard Gay's 57th-minute touchdown made it 8-8. But Warrington scored three tries in the last 10 minutes, two of them by Vagana, to complete their third successive win.
Warrington led 8-4 at half-time. George Mann failed to hold a pass with the line open before they went ahead with a try from Vagana after Warren Stevens made the opening.
Castleford levelled with two penalties from centre Richard Goddard but Warrington regained the lead before half-time when Roper sent the scrum- half Kelly Shelford over. Cas squared the score again when Dean Sampson, Richard Russell and Ford combined to send Gay over.
Then Vagana took over, crossing in the 70th and 75th minutes, before winger Richard Henare went over in the last minute.Reuse content