public CastArray<TFrom, T> Cast<T>()
where T : struct, new()
Public Function Cast(Of T As {Structure, New}) As CastArray(Of TFrom, T)
public:
generic<typename T>
where T : value class, gcnew()
CastArray<TFrom, T> Cast()
member Cast : unit -> CastArray<'TFrom, 'T> when 'T : struct, new()
If the size of T cannot be divided by the size of TFrom, then the cast result may not cover the whole original Buffer to prevent exceeding beyond the original bounds.