may be it is a simple question but I\'m try all of conversion method! and it still has error! would you help me?
decimal? (nullable decimal) to decimal
You can use.
decimal? v = 2;
decimal v2 = Convert.ToDecimal(v);
If the value is null (v), it will be converted to 0.