Tests for cast and trunc