public static double GetRealDouble(string type, int value) { if (type == PrecipitationAmount.TypeName) { return(PrecipitationAmountConverter.ToDouble(value)); } return(value); }