refTypeGetValue function is implemented.