HADOOP-99 Fix casting in Hive's BSON serializer