add a definition for converting the element type of subarrays