use cast's shape arg to make code even nicer