Using primitiveValueForKey to retrieve value.

Using primitiveValueForKey to retrieve value. 
References Issue #564