woocommerce_stock_amount rather than intval

Using woocommerce_stock_amount filter rather than intval cast