private string ResolveString(OneOf <double, int, string> input) => input .MapT0(d => d.ToString(CultureInfo.InvariantCulture)) .MapT1(i => i.ToString(CultureInfo.InvariantCulture)) .Match(t1 => t1, t2 => t2, t3 => t3);