Change library type