So, due to lack of methods like Long.valueOf(String s) I am stuck.
Long.valueOf(String s)
How to convert String to Long in Kotlin?
Extension methods are available for Strings to parse them into other primitive types. Examples below:
String