Function: castValueAsObject()
ts
function castValueAsObject(value: unknown): LucidPlainObject;Casts an unknown value to a plain object
Parameters
| Parameter | Type | Description |
|---|---|---|
value | unknown | The value to cast |
Returns
The value as a LucidPlainObject
Throws
E_UNCASTABLE when the value cannot be cast to an object