Lewis Hamilton has set his sights on staying in Formula 1 into the 2030s in order to fulfil his dream of racing in Africa.