The method doesn't use "this", so it'd be better to have this as a non-prototype function:
function convertToObject(obj) {}