Use strict instead of type-converting comparison

This is just implementing a best practice and not solving any currently known problem.