cleanup to realign with original

TryConvertToIndex does not ignore throwOverflowError parameter