def METHOD_NAME(this, args):
    if GetClass(this) != 'Number':
        raise MakeError('TypeError',
                        'Number.prototype.valueOf is not generic')
    if type(this) != float:
        this = this.value
    return this