remove unneeded typecast