Casting to decimals as well as managing quantity and volume references