import pickle
import base64


def decode_object(string: str) -> object:
    """Convert a base64 string to an object.

    :param string: a base64 string encoding an object
    :return: an object upon success, None otherwise
    """
    try:
        return pickle.loads(base64.b64decode(string))
    except TypeError:
        return None