title: Casting to a fixed width signed number
body: <p>I am reading back a register field from a UVM RAL model. The field itself is a 14 bit signed number, but RAL has no sense of sign so I need to grab just the relevant bits and then cast them to a signed number</p>
  
  <pre><code>uvm_reg_data_t reg_value;
  int destination;
  
  reg_value = reg_field.get();
  assign destination = signed'(14'(reg_value));
  </code></pre>
  
  <p>Is there a way to do this with one cast? I know I could define a type and then use that, but I was wondering if there was any syntax like this that would work:</p>
  
  <pre><code>assign destination = (14's)'(reg_value);
  </code></pre>