Fixed casting from int/short/Integer/Short to Long
Changed Event processId attribute type from String to int