Whenever you're ready, walk me through how you'd approach this.
Explain the concept of upcasting and provide a code example in the context of your automation codebase.