API reference
python:irx:irx.analysis.types.is_explicitly_castable
function is_explicitly_castable
is_explicitly_castable(source: astx.DataType | None, target: astx.DataType | None) -> bool
Source: packages/irx/src/irx/analysis/types.py:1014
Return whether an explicit Cast expression is allowed.
Parameters
-
source — Source input to process.; Type: astx.DataType | None
-
target — Destination of the operation.; Type: astx.DataType | None
Returns
Whether an explicit Cast expression is allowed.; Type: bool