[NUCAPIJDO-65] Add some generics. When ExecutionContext/ObjectProvider
have generics added we can remove some casts