title: Type conversion in ada
body: <p>I have a package where I convert a string to an integer with this : </p>
  
  <pre><code>param: integer;
  begin
  param:= Integer'Value(param_string);
  </code></pre>
  
  <p>My question is verysimple, i would like to do the same thing, but with a generic package. The generic type is TypeElement. However i can't do this :</p>
  
  <pre><code>param: TypeElement;
  begin
  param:= TypeElement'Value(param_string);
  </code></pre>
  
  <p>The error is 'prefix of "value" attribute must be scalar type'</p>
  
  <p>Is there a trick ?</p>