refactor: remove unneeded type casting