How do I cast a variable in Scala?

Given a variable with type Graphics,
how do I cast it to Graphics2D in Scala?

2 Answers
2

Leave a Comment