MongoDB.live, free & fully virtual. June 9th - 10th. Register Now

oneOf with array of array of bytes

One of my Realm entities has a field that’s a byte array:

open class MyObj(
    var myField: ByteArray = ByteArray(0)
): RealmObject()

I’m trying to do a query based on a byte array:

fun match(stuff: Array<ByteArray>): List<RealmReceivedCen> =
    realm.where<MyObj>()
        .oneOf("myField", stuff)
        .findAll()

This doesn’t compile. Can’t I do this match? Do I have to convert my field to a String then?

Thanks!
Ivan