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