val1 = 1
val2 = "1"

if val1 == val2 #< Question is in this line
end

How to compare number and its string representation?

Edit
Report