if (player.Place() != null && player.Place() is AiAircraft) { AiAircraft aircraft = player.Place() as AiAircraft; }