Correct casting logic in FIX.