remove unnecessary typecast