Add cast tests.