public bool Convert(string s, out object value) { int v; if(int.TryParse(s, out v)) { value = v; return true; } value = null; return false; }