From what I can tell bytes are treated as integers in GDScipt. The RawArray's append accepts an integer argument.
So all you have to do is cast the float to int and then append it.
var my_int = int(12.38)
var ra = RawArray()
for byte in ra: