remove needless cast