| 51 | } |
| 52 | |
| 53 | fun asInt(any: Any?): Int { |
| 54 | if (any is Number) { |
| 55 | return any.toInt() |
| 56 | } else if (any is String) { |
| 57 | return any.toInt() |
| 58 | } |
| 59 | |
| 60 | throw AttributeError("value $any is not an int") |
| 61 | } |
| 62 | |
| 63 | fun asLong(any: Any?): Long { |
| 64 | if (any is Number) { |
no test coverage detected