TValueHelper.AsType Method

Overloads

AsType<T>

Casts the currently stored value to another type.

AsType(PTypeInfo, Void)

AsType<T>

Casts the currently stored value to another type.

Delphi
function AsType<T>: T

Type Parameters

T

Returns

T

Remarks

This method fixes the missing interface cast support of TValue.AsType<T>.

AsType(PTypeInfo, Void)

Delphi
procedure AsType(typeInfo: PTypeInfo; out target)

Parameters

typeInfo
PTypeInfo
target
Void