Is there a way I can convert BrickColor into Color3?

I’m trying to make a part be the same color as the LocalPlayer’s team color but the output says “Color3 expected, got BrickColor”

You can use
Brickcolor.Color
link

dont know why i didnt think to look for that, thanks