In Scala, I can declare a byte array this way
val ipaddr: Array[Byte] = Array(192.toByte, 168.toByte, 1.toByte, 9.toByte)
This is too verbo
You can use implicit
implicit def int2byte(int: Int) = { int.toByte }
And that will convert all Int values in scope in places where byte is required.