My understanding is in the case of Obama and Cruz they must swear an oath to the US Constitution after turning 18 and then they are ineligibleto be president. I think what they were trying to do is claim he never did swear allegiance and that made him ineligible.