Remove redundant typecast