TValueHelper.Cast Method

Definition

Casts the currently stored value to another type.

Delphi
function Cast(typeInfo: PTypeInfo): TValue

Parameters

typeInfo
PTypeInfo

Returns

TValue

Remarks

This method fixes the missing interface cast support of TValue.Cast.