In reply to sanket2193:
we are representing each payload item with 8 bits which are sufficient to hold a sum value of 100. so why is this working only if we cast the item to be of int type in the constraint?
Because item represents the actual payload element so item width == payload array element width = 8 bits which should hold the sum 100
what am I missing here?