rm duplicate checks from ToInteger abstract operation