change type cast to of; add error checking in precompilation main; add class of class test case; define type to accept only 1 class