Casting into an enum

In reply to Tudor Timi:

That would imply that VCS couldn’t run the module “cast” that I wrote above. Is that true?