I think you are looking for:
quantity<pressure> p(101.1 * kilo * pascals); double dblP = p / pascals;
If you split the block, you are left with quantity<dimensionless> , which will be implicitly converted to double . This eliminates any question about what the internal representation (which value() returns) of units.
source share