Thanks Roycefer -It still won't compile ;(
B4J version: 3.61
Parsing code. (0.00s)
Compiling code. Error
Error compiling program.
Error description: Cannot cast type: {Type=Int,Rank=1, RemoteObject=True} to: {Type=Byte,Rank=1, RemoteObject=True}
Occurred on line: 155
astream.Write(b)
Word: b