Cast floor log to int