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