code clean: remove unchecked cast warning