@eshioji: AFAIK Integer can simply be specified by using a nullable Int. So instead of directly feeding the function a number, you'd create a local variable of the number and explicitly define that local variable as Int?
val myNumber: Int? = 123
instead of
val myNumber = 123