implemented auto type cast, dynamic type casting of script variables