C# convert object to decimal tryparse code example Example: convert string to decimal c# DepositAmount = Convert.ToDecimal(u.DepositAmount)