allow target class to be object and cast it to string our self