Converts a number or bigint to ObjectStatus.
The value to convert.
The corresponding ObjectStatus.
Error if the value is not valid.
Converts a number or bigint to ObjectStatus.