changed casting method2