added type check during binding

property binding is now doing type check