Skip to content

Function: castValueAsObject()

ts
function castValueAsObject(value: unknown): LucidPlainObject;

Casts an unknown value to a plain object

Parameters

ParameterTypeDescription
valueunknownThe value to cast

Returns

LucidPlainObject

The value as a LucidPlainObject

Throws

E_UNCASTABLE when the value cannot be cast to an object