If have this in the setter of a property:
decimal? temp = value as decimal?;
value = \"90\"
But after the cast, temp is nul
Surprisingly, but good old System.Convert.ToDecimal(myNullableDoubleBoxedInObject) works perfectly:
System.Convert.ToDecimal(myNullableDoubleBoxedInObject)
decimal? myNullableDecimal = 0.15m; object myNullableDoubleBoxedInObject = myNullableDouble ; decimal myDecimal = System.Convert.ToDouble(myNullableDoubleBoxedInObject);