Convert Any to Integer in Scala?

Viewed 11074

How do I convert an Any to an Integer?

Specifically, I have a function that returns Any, and in one situation I know it will return a number of type Any, and I need that number to be converted to type Integer so I can use it in another function.

1 Answers
Related