[SystemVerilog] how to convert/cast an enum type to string?

In reply to dmitryl:

You can use “.name” method of enum to display the string value of enum.

function dispaly(my_enum_t my_enum);
  $display("Value: $0s",my_enum.name);
endfunction