correct type casting criteria source