Will Smith to play Barack Obama