code/ViewableWrapper.php
public function castingHelper($field)
    {
        if ($this->hasMethod('db') && $fieldSpec = $this->db($field)) {
            return $fieldSpec;
        }

        $specs = Object::combined_static(get_class($this), 'casting');
        if (isset($specs[$field])) {
            return $specs[$field];
        }

        //if($this->failover) return $this->failover->castingHelper($field);
    }
public function castingHelper($field)
    {
        if ($this->hasMethod('db') && $fieldSpec = $this->db($field)) {
            return $fieldSpec;
        }

        $specs = Object::combined_static(get_class($this), 'casting');
        if (isset($specs[$field])) {
            return $specs[$field];
        }

        //if($this->failover) return $this->failover->castingHelper($field);
    }
Return the "casting helper" (a piece of PHP code that when evaluated creates a casted value object) for a field
on this object. MODIFIED TO LEAVE FAILOVER ALONE (so it doesn't have to inherit Object).

@param string $field
@return string