System.Rtti.TValue.AsType

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function AsType<T>: T;

C++

T __fastcall TValue::AsType(void)

Properties

Type Visibility Source Unit Parent
function public
System.Rtti.pas
SystemRtti.h
System.Rtti TValue

Description

Casts the currently stored value to another type.

Call AsType to convert the stored value to another type. AsType returns a new, converted value if the conversion succeeded; otherwise, an exception is raised.

See Also

Code Examples