Use .valueOf() in #to_n