Add type validation to getter and setter methods.