Fix some integral to pointer (forward/backward) cast