[BUGFIX] cast error on ca2 conversion