protected static double CastToDouble(DataValue value) { return (double)TypeInfo.Cast(value.Value, value.WrappedValue.TypeInfo, BuiltInType.Double); }