public interface IUntypedArray
public T[] TryResolve<T>();
public struct TypedArray<T>: IUntypedArray
public TypedArray(T[] array)
public T1[] TryResolve<T1>()
if (typeof(T1) != typeof(T)) return null;
public static void Main()
var test = new TypedArray<int>(new int[]{1});
public static void Tester(IUntypedArray arr) {
var test = arr.TryResolve<int>();
Console.WriteLine("Result: " + test[0]);