Add cast to the proper types for readingdb.  This was causing it to break
when used with timestamps, esp when compressed with avro