Java Convertir la matriz a otro tipo
import java.util.Arrays;
int[] arr = {1, 2, 3, 4};
// convertions
Object[] a = Arrays.stream(arr).mapToObj(i -> i).toArray();
Double[] b = Arrays.stream(arr).mapToDouble(i -> i).toArray();
Long[] c = Arrays.stream(arr).mapToLong(i -> i).toArray();
Willian Pinheiro