toEnum package:copilot-language

Convert from an Int.