valueAs
Casts the condition value to the specified type.
This method provides type-safe access to the condition value by performing an unchecked cast. Use with caution and ensure the value is actually of the expected type.
Return
The condition value cast to type V.
Parameters
V
The target type to cast the value to.
Throws
if the value cannot be cast to the specified type.