Kotlin parse Hex String to Long
Since Kotlin v1.1 you can use:
"ED05265A".toLong(radix = 16)
Until then use the Java's Long.parseLong
.
You can simply use
java.lang.Long.parseLong("ED05265A", 16)
Or
import java.lang.Long.parseLong
[...]
parseLong("ED05265A", 16)
Kotlin is compatible with Java, and you can, and should, use Java's built-in classes and methods.