Remove superfluous casting