Add cast test