Have you tried testing the VarType of $RV? Most values returned are strings.