Static cast to int, as strlen return size_t