[fix][warning] removed the compilation warninig of wrong function cast