Convert Hex value from BLE to Float in Kotlin

Hi Everyone,
Someone will know how I can convert Hex value (from my ble sensor) to Float ?
Initially I did it in Java, But I would like to do it in Kotlin.

int intBits = Long.valueOf(hexBLEValue, 32).intValue();
float floatValue = Float.intBitsToFloat(intBits);

Thanks to all.

val decimal: Long = BigInteger(reverseHexValue, 16).toLong()
val binary1 = java.lang.Long.toBinaryString(decimal)
val intBits = binary1.toInt(2)
val floatValue = java.lang.Float.intBitsToFloat(intBits)