How do I cast a variable in Scala? by IT Nursery Given a variable with type Graphics, how do I cast it to Graphics2D in Scala? 2 Answers 2