def nint(val):
    if val is None: return None
    return int(val)

def nstr(val):
    if val is None: return None
    return str(val)

def nbool(val):
    if val is None: return None
    return bool(val)

