Remove not needed casting.