Cuban had hinted about his uniform number earlier Friday, ESPN reported.
"Yeah, yeah, watch the jersey number, not my game," said Cuban, who finished scoreless with one rebound and a steal in 17 minutes as the West lost 88-59 to the East. "Yeah, it was fun. You've got to have some fun with all of this. You can't take yourself too seriously. Some people do. I don't."
Trump posted a tweet about Cuban on Feb. 12, writing: "I know Mark Cuban well. He backed me big-time but I wasn't interested in taking all of his calls. He's not smart enough to run for president!"
Cuban, a vocal supporter of Hillary Clinton during the presidential election, has been critical of Trump, especially on Twitter. On Friday, Cuban posted six tweets in which he slammed Trump's policies and character.