Fixed type conversion for Color and Brush.