remove pointless cast