public static int extractLowInt(long val) {
    return (int) val;
  }
@param val
         long value
@return low 32bit of the given value
common/src/java/org/apache/hadoop/hive/common/type/SqlMathUtil.java