Fix: fix some Type cast Error