fixed typcasting error in Note class declaration