public function castValue($value)
    {
        if ($value === 'Off' || $value === '' || $value === 0 || $value === '0' || $value === false) {
            $casted = 0;
        } elseif ($value === 'On' || $value === '1' || $value === 1) {
            $casted = 1;
        } else {
            $casted = $value;
        }

        $casted = $this->castPowers($casted);

        return $casted;
    }