Removed unnecessary cast to Ninject container

There is an unnecessary cast to a NinjectDependencyResolver, when just the IDependencyResolver interface would suffice.