Remove needless typecast