public function apply($testable, array $config = array()) {
		$message = 'Casting in the incorrect format, try: "(array) $object;"';
		$tokens = $testable->tokens();
		$filtered = $testable->findAll($this->tokens);

		foreach ($filtered as $id) {
			$token = $tokens[$id];
			$html = '';
			foreach (array_slice($tokens, $id, 3) as $t) {
				$html .= $t['content'];
			}
			if (preg_match($this->pattern, $html) === 0) {
				$this->addViolation(array(
					'message' => $message,
					'line' => $token['line'],
				));
			}
		}
	}