add cast to enum
add cast to enum

Signed-off-by: Dawid Zimonczyk <049f7e3b2b9716e0f331e21b3c38cae5a47562b7@aldec.com.pl>

AmbiML/ibex,lowRISC/ibex,AmbiML/ibex,lowRISC/ibex,lowRISC/ibex,AmbiML/ibex,lowRISC/ibex,AmbiML/ibex