Smart cast