Fixed another issue of explicit casting the Type