Add cast to prevent warning