Cast sqrt(n) to in, it will fullfill condition with = comparison