change argument type for convert() to Double