Is there any way to specify what type of message an actor can accept and give a compile error if anything tries to send it some other type?
I think the answer is in the post referred to by @mkneissl : "The common practice is to declare what messages an Actor can recieve in the companion object of the Actor, which makes it very much easier to know what it can receive."
An example of that would be useful...