I don't really get what's going on here... why the cast to `float*`?