Created a method for general setting when the object type is unknown,
this may be useful sometime in the future.