Added test for primitive type casts.