Fix invalid asInstanceOf cast.
Merge branch 'hadoopconf' into bizo