remove blind cast and use converter if needed

this route appears to occur when using WFS to update