Added To enum,TODO fix bug with getting class