var system = ActorSystem.Create("MySystem"); var myActor = system.ActorOf("MyActor"); var actorRef = myActor;
var myActorRef = actorRef as ActorRefIn this example, we use the as operator to cast the `IActorRef` instance to `ActorRef; if (myActorRef != null) { // Now we can access methods specific to MyActor: myActorRef.Receive("Hello"); }