Remove unnecessary duble casts