Remove unnecessary typecast