The following code:
class A { public byte[] ByteArray {get; set;} } collection.AsQueryable().Where(o => o.ByteArray[0] == 1).ToCursor();
Fails with
LINQ2:
System.InvalidOperationException: 'Convert({document}.ByteArray[0], Int32) is not supported.'
LINQ3:
System.InvalidOperationException: MongoDB.Bson.Serialization.Serializers.ByteArraySerializer must implement IBsonArraySerializer to be used with LINQ.
Other integer types work as expected.