use symbol or class for type cast