the message selection logic only works for integers. I don't know why it would be casted to a float.