new config casting strategy