KIJIHIVE-33. Fix ClassCastException when reading a SpecificRecord.

Signed-off-by: Lee Sheng <lsheng@wibidata.com>