Queryable.php
public function Cast( $type )
	{

		$obj = $this->getClone();

		foreach ($obj->repository as &$value) {
			settype($value, $type);
		}

		return $obj;

	}
public function Cast( $type )
	{

		$obj = $this->getClone();

		foreach ($obj->repository as &$value) {
			settype($value, $type);
		}

		return $obj;

	}
public function Cast ( $ type ) { $ obj = $ this -> getClone ( ) ; foreach ( $ obj -> repository as & $ value ) { settype ( $ value , $ type ) ; } return $ obj ; }
Casts the elements to the specified type.

@param string $type Type
@return Queryable
Casts the elements to the specified type .