add cast test