Real variable randomization

In reply to dave_59:
hi Dave ,
can we modify the post_randomize function by using the casting ?

 
function void post_randomize();
 freq_real = real'((freq_int)/32'd10 );
  endfunction