Fixed bug related to Cast to real type of argument into advice methods.