this error keeps showing on this line of code
ApplicantSett.Nationality1 = IIf(IsDBNull(ds.Tables("Applicant").Rows(i)("Nationality1").ToString) Or IsNothing(ds.Tables("Applicant").Rows(i)("Nationality1").ToString),
Nothing, CInt(ds.Tables("Applicant").Rows(i)("Nationality1").ToString))
the variable Nationality1 is an Integer and it is null in the database so it is not converting. what should I do?