I'm a bit new to the `Number` class, I would like ...
# announcements
d
I'm a bit new to the
Number
class, I would like to verify this is ok to do... I have a situation where I'm retrieving a number value from a map (it is
Any
) ... for now they are all
Int
value but in the future it is conceivable they might be `Double`s. My
fun
then returns this value as a
Double
. Is it ok to retrieve from the map into a
val number =  map["number"] as Number
? Then I can just return
number.toDouble()
seems to work but I just want to know it is ok to do