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