add castv2 sample code
add sample castv2