Added support for types when binding params