title: Delphi (-XE) : casting to a record type with implicit conversion
body: <p>I have a record type with methods, representing an specific hardware measurement type, read from the instrument as a string. The record contains implicit coversion to (and from) a string. If I cast a string as a record type, it seems to work, but is this safe? That is, does casting a string to a record with implicit string conversion call the implicit conversion as per assigning a temporary value? </p>
  
  <pre><code>var  a: MeasurementRecord;         // record type with implicit string conversion &amp; decode methods
  b: string;
  c:double;
  begin
  b := Edit1.Text;              // Or any other string source 
  a:=b;                         //Ok
  a:= edit1.text;               //Ok
  c:= a.returnQc;                 // returns measurement quality value
  
  c:= MeasurementRecord(Edit1.text).returnQC;   //Avoiding local variable. This works, but is it correct useage?
  
  end;
  </code></pre>