Smart casting