Feedback
Support checked conversion from Integer to enumeration values
- Status
- Fixed
- Fixed in
- v26.9.1
- Area
- -
- Source discussion
- https://forum.objo.dev/d/1032-feature-request-built-in-way-to-convert-between-enumeration-and-its-value
- Last updated
- 2026-09-08
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Allow an Integer to be explicitly converted to an enumeration with the existing EnumerationType(value) cast syntax. The conversion should accept declared backing values and reject values that are not members of the target enumeration, making it easier to restore enumeration values from persistence and other integer-based APIs without hand-written Select Case helpers.