I get value from Dictionary like that:
Dictionary<string, object> AllData
this.UserID = Convert.ToInt16(AllData["UserID"].ToString().ToUpper());
If UserID = null, i get an error :
"Input string was not in a correct format"
How can i solve it (i don't want to add an if condition becuase there are many objects in that Dictionary)