Try using rampUpRate.toLong
to cast to a Long (or the more general cast rampUpRate.asInstanceOf[Long]
)
(Long) rampUpRate
is seen by the compiler as trying to perform Long.rampUrRate()
e.g. applying function rampUpRate
to object Long
, hence the error message