xxxxxxxxxx
string s = $"{myObj}";
xxxxxxxxxx
string s = (myObjc ?? (Object)"").ToString()
string s = ((Object)myObjc ?? "").ToString()
xxxxxxxxxx
public static string ToStringNullSafe(this object value)
{
return (value ?? string.Empty).ToString();
}