Remove not needed type cast