Can I pass unknown size of unpacked array of packed array to a function?

In reply to saritr:

There is a mismatch in formal and actual arguments. Actual argument is a queue of bit [9:0]. While formal argument is of queue of bit [31:0].