Small lib to handle type conversions