Add extra test for cast template