A Canadian citizen was convicted of illegally voting in two federal elections in North Carolina, prosecutors said Friday.