Works around an nvidia driver bug, where casting the integer attributes to float and back to an integer always returned 0.