I am using Delphi XE2. As a workaround to Delphi not supporting forward references to Record types I started using untyped parameters.
How can I obtain the Type of an untyped Parameter?
procedure TSomeRecord.TransformBy(const AUntypedParam);
begin
// how can I ensure that **AUntypedParam** is of a specific record type?
I need to make sure that AUntypedParam is of a specific type, otherwise an exception should be thrown. Thank you!