Added new methods to convert primitive wrapper to primitive array