Add test for type casts