Fixed bug for typecast's naming issue.