That should get you working correctly. You need the true as the last parameter of get_post_meta in order to return a single value instead of the default array value from the database. Also, you don’t need quotes around variables when you are passing them as a function parameter.
If you dig Soliloquy, a 5-star rating would rock! 🙂