Renamed asType to toType in Color.ooc.