add casting test