function avalue_to_yvalue

static VALUE avalue_to_yvalue(VALUE v)