added equality test and cast any strings in constructor argument to either floats or ints