Use downcast_primitive_array
in arithmetic kernels
#2640
Merged
downcast_primitive_array
in arithmetic kernels
#2640