wrgon cast and values assignment