Method or apparatus with casting