cast color values