public class Transform { static U [] Process(T [] input) { U [] output = new U[input.Length]; for (int x = 0; x < input.Length; x++) { output[x] = (U) Convert.ChangeType(input[x], typeof(U)); } return output; } }