Morgan Stanley says that a tight labor market is expanding the use of robots, and that it expects a boom in humanoids, or robots with human shapes. “Advances in AI are transforming the robotics industry,” Morgan Stanley analysts wrote in a June 26 report, “Humanoids: The Investment Implications of Embodied AI.” “Labor shortages and demographic trends are expanding the commercial importance and adoption paths (and economic payback periods) across a wide range of industries,” they added. The bank predicts that the humanoid population will be 40,000 by 2030, 8 million by 2040, and 63 million by 2050. But that doesn't mean they're worried about robots taking jobs. The analysts say robots are more likely to do the jobs that humans don't want to do. “We see a more optimistic future than the technology slowdown advocates paint, one in which robots continue to complement and even enhance human labor and productivity, while routine and dangerous tasks can be outsourced,” they wrote. “But perhaps even more pressing is the stark reality that we'll need humanoids.” Morgan Stanley is not alone in its bullish stance on humanoids. Last month, Tesla CEO Elon Musk claimed that the company's Optimus robot could eventually value the company at $25 trillion, more than half the market capitalization of the S&P 500. In January, the company released a video demo of the Optimus robot folding laundry. But the robot was heavily criticized by engineers for being operated by a human and not autonomous. Still, Morgan Stanley outlined several sectors that could benefit from humanoids, with social welfare likely to be the biggest market. The bank said the manufacturing costs of a humanoid robot could range from $10,000 to $300,000 per unit, but added that “there are opportunities for significant cost reductions through economies of scale, the introduction of AI algorithms that significantly shorten research and development cycles, and the use of cost-effective parts made in China.” The analysts compiled a list of 66 stocks that they believe “best represent the humanoid theme.” These stocks are classified as either enablers (companies that develop the robots and their inputs, such as their “brains and bodies”) or beneficiaries (companies that can benefit from the labor of humanoids), or both. Here are some of the stocks that made it onto Morgan Stanley's list, which includes companies from the U.S., Asia and Europe. CNBC's Michael Bloom and Laura Kolodny contributed to this report.