Simple way to get Rectangle Colour in API 2.0?

In API 1.0 I have the line:

Var myColour As Integer = myRectangle.FillColor.ToString.Val

but this doesn’t work in API 2.0 since FillColor is now a ColorGroup (ie supports Light/Dark colours). Is there an easier way to retrieve the colour than this?:

Var tempColour As Color = myRectangle.FillColor
Var myColour As Integer = tempColour.ToString.Val

somehow

Var col As ColorGroup = Rectangle1.FillColor

Var cols() As Color = col.Values()

System.DebugLog cols(0).ToString

Thank you @MarkusR for your tip.