Assign queue values to dynamic array

In reply to kerulmodi:

yes , but i want to keep the size same as that of dynamic array , in copying the elements it will have the same size as that of queue , for eg
data ={ 1,2,3,4 } // data is a dynamic array in transaction
data_que = { a , b } // it is declared in monitor

now i am want to assign values to data from data_que in such a way that
data = { a,b, 0,0,}