`cast` param is unused?