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