action cast

get rid of warning
update example