Type casted $type to string to pass travis CI