Some useful AVRO helpers