Parameter | Description |
---|---|
value | The output parameter that holds the value if the conversion is successful. |
bool
true
if the value was successfully retrieved and cast to T
; otherwise, false
.
Attempts to retrieve the value of the constant node as the specified type.
This method provides type-safe access to the constant's stored value. It performs a type check
and conversion internally. If the value cannot be cast to T
, the method returns false
and is set to the default value of T
.