Add generic type to the Binder class

Avoid cast on custom binder.
Minor API changes.