Added check to process only object[]

Added the check to verify that the passed in parameter is an object[]
and not a primitive array. Verified it by passing an int[] from voter
and it did not go through the extraction block.