Take a more competent stab a the casts which breaks builds in jenkins.