Replace getValue with toNative