Separated GetPropertyValue into 2 separate methods and removed type changing to prevent unintended consequences.
Separated GetPropertyValue into 2 separate methods and removed type changing to prevent unintended consequences.

dahall/vanara