Use inWholeHours property instead or convert toDouble(HOURS) if a double value is required.
toDouble(DurationUnit.HOURS)
The value of this duration expressed as a Double number of hours.