simplified casting