#50 Changed typed value to properly deal with NA values and variants.