Given the following:
Type
TSomeTypeArray = array of SomeType;
var
anArray: array of SomeType;
function GetSomeTypeArray: TSomeTypeArray;
I want to write anArray = GetSomeTypeArray();
but the compiler does not like it.
Without changing the type of anArray
or the return type of GetSomeTypeArray
how can I typecast TSomeTypeArray
to array of SomeType
?