This is not be safe. It is possible to use an array as one of the possible values of the enum. ``EnumNode::finalizeValue`` uses ``implode(', ', array_map('json_encode', $this->values))`` to display the permissible values in the exception message.