variable type casting on param method